export function api() {
    const api = {
        base: 'http://192.168.1.145:8081',
        common: 'http://common.zzyuu.com',
        static: '',
        image: 'http://img-test.zzyuu.com/',
    };

    return api;
}

export function image(host, url, params = '') {
    if (url && url.indexOf('http') !== -1) {
        return url;
    }

    const path = `${host}${url}${params}`;
    return path;
}
